<!--正文内容-->
<ion-view title="">
  <ion-content swipe-touch class="mainText" padding="false" scroll="false" overflow-scroll="true" has-bouncing="true">
    <ion-scroll bindonce class="scrollYFix" direction="y">
      <h2 class="mainTextTitle" ng-if="mainText.article.title">{{mainText.article.title}}</h2>
      <p class="litTitle">
        <span ng-if="mainText.article.origin">来源: </span><span>{{mainText.article.origin}}</span>
        <span ng-if="mainText.article.author">作者: </span><span>{{mainText.article.author}}</span>
        <span ng-if="mainText.article.created_at">{{mainText.article.created_at}}</span>
      </p>
      <div class="mainData" ng-bind-html="mainText.article.content"></div>
      <div ng-if="mainText.related_articles && mainText.related_articles.length != 0">
        <div class="relatedTitle">相关文章</div>
        <ion-list>
          <ion-item ng-repeat="related_articles in mainText.related_articles" ng-click="relatedId(related_articles.id)">
            <h2 class="homeNewTitle">{{related_articles.title | trustHtml}}</h2>
            <p class="homeNewAuthor">
              <span bo-if="related_articles.origin">来源：<span  bo-text="related_articles.origin"></span></span>
              <span bo-if="related_articles.author">&nbsp;作者：<span bo-text="related_articles.author"></span></span>
              <span bo-if="related_articles.created_at">&nbsp;<span bo-text="related_articles.created_at"></span></span>
            </p>
          </ion-item>
        </ion-list>
      </div>
      <div ng-if="mainText.hot_comments && mainText.hot_comments != 0">
        <div class="commentsTitle">热门评论</div>
        <communicate communicate-data="mainText.hot_comments"></communicate>
      </div>
    </ion-scroll>
  </ion-content>
</ion-view>
